package com.gupao.jly521.lazy;

/**
 * @author Jly
 * @date 2018/8/21  15:40
 */
public class LazyOne {

    private LazyOne() {
    }

    private static LazyOne instance = null;

    /**
     *  线程不安全
     * @date 2018/8/21 15:44
     * @author Jly
     * @param []
     * @return com.gupao.jly521.lazy.LazyOne
     */
    public static LazyOne getInstance(){
        if (instance == null){
            instance = new LazyOne();
        }
        return instance;
    }
}
